<template>
	<view class="content bg-light" style="height: 100%;">
		<tabsTop tabName="小康币商城"></tabsTop>
		<view class="bg-white" style="min-height: 570px;">
			<!-- 可用小康币 -->
			<view class="p-1" style="border-bottom: 1px solid #eef0f1;">
				<view class="p-1" style="font-size: 13px;">可用小康币</view>
				<view class="flex justify-between p-1 align-center">
					<view style="font-size: 23px;">{{number}}</view>
					<view class="flex">
						<view class="flex">
							<image :src="details_icon"></image>
							<view style="font-size: 13px;">小康币明细</view>
						</view>
						<view class="flex">
							<image :src="rules"></image>
							<view style="font-size: 13px;">规则</view>
						</view>
					</view>
				</view>
			</view>
			<!-- 商品 -->
			<view>
				<view class="text">暂无可兑换活动</view>
			</view>
		</view>
		<!-- 底部赞助信息 -->
		<botSponsor></botSponsor>
	</view>
</template>

<script>
	const app = getApp();
	import tabsTop from "@/components/tabs/tabs-top.vue";
	import tabsBottom from "@/components/tabs/tabs-bottom.vue";
	import botSponsor from "@/components/botsponsor/sponsor.vue"
	export default {
		components: { //轮播图组件
			tabsTop,
			tabsBottom,
			botSponsor // 底部赞助商
		},
		data() {
			return {
				number: '',
				rules: app.globalData.Domain_ICON+'/rules.png',
				details_icon: app.globalData.Domain_ICON+'/details_icon.png',
			}
		},
		onReady() {},
		onLoad(options) {
			const number = decodeURIComponent(options.amount)
			this.number = number
		},
		methods: {

		}
	}
</script>

<style>
	image {
		width: 20px;
		height: 20px;
	}

	.text {
		position: absolute;
		top: 50%;
		left: 40%;
		font-size: 12px;
	}
</style>